#pragma once
#include <windows.h>
#include "MAP_OBJECT.h"

class MapSource
{
public:
	MapSource(void);
	int ReadData(map_obj* map_objects,cell_obj* cells, char* fname);
	int WriteData(map_obj* map_objects, cell_obj* cells, char* fname);
	string mobjpack(MAP_OBJECT mobj);
	MAP_OBJECT mobjunpack(string instr);
	string mcntpack(contour_t);
	contour_t mcntunpack(string instr);
	string cellpack(CELL_DATA incell);
	CELL_DATA cellunpack(string instr);
	~MapSource(void);
};

